package commands;

import controller.ExecutorsManager;
import controller.ExecutorsManager.AddUserExecutor;

/**
 * class AddUserCommand - execute add user command
 */
public class AddUserCommand {
	AddUserExecutor addUserExecutor = ExecutorsManager.getInstance().getAddUserExecutor();
	
	/**
	 * constructor
	 */
	public AddUserCommand(){}

	/**
	 * add the user
	 * @param userName - a user name
	 * @param password - the user password
	 * @return 1 - if succeed. 0 - if failed. 
	 */
	public int action(String userName, String password) 
	{
		// TODO Auto-generated method stub
		return addUserExecutor.addRequest(userName, password);				
	}
	

}
